#include <stdio.h>
#include "subsequence.hpp"

void vctPrintf(std::vector<int> vct) {
    int sum = 0;
    for (auto one : vct) {
        sum += one;
        printf("%02d, ", one);
    }
    printf("\nsum :%d\n", sum);
}

int main(int argc, char const *argv[])
{
    std::vector<int> m_vct_num = {23, 22, 3, 9, 5, 10, 20, 6, 36, 38, 2, 18, 32, 7,
                                  25, 1, 12, 34, 29, 16, 11, 15, 28, 35, 27, 33, 39, 
                                  37, 26, 30, 31, 0, 17, 14, 19, 21, 24, 13, 4, 8};

    Subsequence sub;
    std::vector<int> result = sub.subsequence(m_vct_num);

    vctPrintf(result);
    return 0;
}
